package com.piaodekuai.flight;

import javafx.application.Application;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
/*import org.springframework.boot.web.servlet.ServletComponentScan;*/
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;


/*@ServletComponentScan*/
// mapper 接口类扫描包配置
//@MapperScan("com.piaodekuai.flight.mapper")
@SpringBootApplication
public class FlightApplication extends SpringBootServletInitializer {

    @Override
    protected SpringApplicationBuilder configure(SpringApplicationBuilder application){
        return application.sources(FlightApplication.class);
    }

    public static void main(String[] args) {
        SpringApplication.run(FlightApplication.class, args);
    }

}
